﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Comment.aspx.vb" Inherits="CW1.Comment" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p class="addContentTitle">View Comments</p>
    <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
        <ItemTemplate>
            <font size="large" color=black>Author: <%# Eval("UserName")%><br />
            <%# Eval("Comment")%><br /></font>
            <hr />
        </ItemTemplate>
    </asp:Repeater>
    <br />
    <asp:Button ID="btn_AddComment" runat="server" BackColor="#660066" 
        BorderStyle="None" Font-Size="Medium" ForeColor="White" 
        Text="Add New Comment" CssClass="addContentButton" />
    <br />
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:WarriorConnection %>" 
        ProviderName="<%$ ConnectionStrings:WarriorConnection.ProviderName %>" 
        SelectCommand="SELECT [ID], [Game_fkID], [UserName], [Comment] FROM [Comment] WHERE ([Game_fkID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="Game_fkID" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>
